﻿<%@ Control Language="C#" AutoEventWireup="true" ClientIDMode="Static" CodeBehind="Selector.ascx.cs" Inherits="UI.UserControl.UI.Selector" %>
<script src="<%=ResolveClientUrl("~") %>js/jquery-1.7.2.min.js"></script>
<script src="<%=ResolveClientUrl("~") %>js/SelectorQuery.js"></script>
<link href="<%=ResolveClientUrl("~") %>css/Pro_list.css" rel="stylesheet" />
<script>
    function check() {
        if (document.getElementById("h_entityid").value == "0"
            &&
            document.getElementById("brand-list-li").style.display) {
            if (document.getElementById("brand-list-li").style.display != "none") {
                printMsg('<%=this.EmptyTip%>');
            }
        }
        else {
            clearMsg();
        }
    }

    function s() {
        $("#brand-list-li").show();
    }

    function h() {
        if (document.activeElement.id != "query")
            $("#brand-list-li").hide();
    }
</script>

<div class="brand-list" id="brand-list" onkeyup="processKeyup()" onkeydown="processKeydown()">
    <asp:TextBox ID="query" runat="server" AutoCompleteType="Disabled" Text="" onblur="check()" onfocus="s()"></asp:TextBox>
    <asp:Label ID="selectorlblmsg" runat="server" Style="display: none;" ForeColor="Red" Text=""></asp:Label>
    <ul id="brand-list-li" onclick="<%=this.UlClickEvent %>" style="margin-top: -10px; width: <%=this.UIWidth%>px"></ul>
</div>

<asp:HiddenField ID="h_entityid" runat="server" Value="0" />

<%--配置区--%>
<%--文件相对深度 自动获取--%>
<asp:HiddenField ID="c_FilePathDepth" runat="server" Value="" />
<%--文件目录 深度自动获取--%>
<asp:HiddenField ID="c_FilePath" runat="server" Value="" />
<%--下拉列表显示的最多数据项--%>
<asp:HiddenField ID="c_MaxItemCount" runat="server" Value="10" />
<%--自定义url查询数据项 添加在queryword=&c=之后--%>
<asp:HiddenField ID="c_customizeQuery" runat="server" Value="" />